FROM openjdk:1.8
# 指定维护者的名字
LABEL maintainer='吴涵华'
LABEL email='w5hh@qq.com'
LABEL version="1.0"

ARG baseDir='/app'
ARG jarName=${rootArtifactId}-web.jar
WORKDIR $baseDir
ENV APP_HOME=$baseDir
COPY ${rootArtifactId}-web/target/$jarName $baseDir/$jarName
#java全局参数
ENV JAVA_TOOL_OPTIONS "-Duser.country=cn -Duser.language=zh"
CMD java -jar $baseDir/$jarName
